package com.faner.fast.upms.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.faner.fast.base.BaseModel;
import com.faner.fast.csv.annotation.ResponseCsv;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * description: FileDO
 * date: 2020/11/26 16:45
 * author: faner
 */
@Data
@TableName("file_list")
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class FileDO extends BaseModel{

    @ResponseCsv(title = "路径",order = 1)
    @ExcelProperty(value = "路径")
    private String path;
    /**
     * LOCAL REMOTE
     */
    @ResponseCsv(title = "类型",order = 1)
    @ExcelProperty(value = "类型")
    private String type;
    @ResponseCsv(title = "名称",order = 1)
    @ExcelProperty(value = "名称")
    private String name;
    @ResponseCsv(title = "扩展",order = 1)
    @ExcelProperty(value = "扩展")
    private String extension;
    @ResponseCsv(title = "大小",order = 1)
    @ExcelProperty(value = "大小")
    private Integer size=0;

    /**
     * md5值，防止上传重复文件
     */
    @ExcelProperty(value = "MD5")
    @ResponseCsv(title = "MD5",order = 1)
    private String md5;
}
